<template>
	<view :class="pageClass" :style="pageStyle" v-if="pageReady">
		<moxi-nav :set="navSet"></moxi-nav>
		<view v-for="(list, key) in modData" :class="list.mod_class" :style="list.css">
			<goodslist :set="list.set" :column_id="column_id" :search="search" v-if="list.name == 'goods_list'">
			</goodslist>
			<moxi-index v-else :list="list"></moxi-index>
		</view>
		<moxi-tabbar :set="tabbar" v-if="tabbar.index_id"></moxi-tabbar>
	</view>
</template>
<script>
import goodslist from '@/page_mall/component/goods_list.vue';
export default {
	components: {
		goodslist
	},//2.注册组件
	data() {
		return {
			column_id: 0,
			search: "",
			scrollTop: 0
		}
	},

	onLoad() {

		if (this.param.column_id) {
			this.column_id = this.param.column_id;
		}
		if (this.param.search) {
			thissearch = thissearch;
		}
	},
	methods: {
		onPageScroll(e) {
			this.scrollTop = e.scrollTop;
		}
	}
}
</script>

<style></style>
